<template>
  <div>
    <van-nav-bar v-if="backState" :title="msg" left-text="返回" left-arrow @click-left="onClickLeft" />
    <van-nav-bar v-else :title="msg" />
  </div>
</template> 

<script>
export default {
  props: ["msg", "backState"],
  data() {
    return {};
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    }
  },
  created() {
    console.log(this.backState);
  }
};
</script>

<style>
</style>